class PayBankListVo {

  List<PayBankItem>? data;

  PayBankListVo({this.data});

  PayBankListVo.fromJson(Map<String, dynamic> json) {
    if (json['data'] != null) {
      data = [];
      json['data'].forEach((v) {
        data!.add(new PayBankItem.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class PayBankItem {
  int? id;
  String? accountName;
  String? cardNumber;
  int? isDefault;
  String? bank;
  String? mobile;
  String? code;

  PayBankItem(
      {this.id,
      this.accountName,
      this.cardNumber,
      this.isDefault,
      this.bank,
      this.mobile,
      this.code});

  PayBankItem.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    accountName = json['account_name'];
    cardNumber = json['card_number'];
    isDefault = json['is_default'];
    bank = json['bank'];
    mobile = json['mobile'];
    code = json['code'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['account_name'] = this.accountName;
    data['card_number'] = this.cardNumber;
    data['is_default'] = this.isDefault;
    data['bank'] = this.bank;
    data['mobile'] = this.mobile;
    data['code'] = this.code;
    return data;
  }
}
